<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>解构对象</title>
    <script>
      let user={
          id:10086,
          name:"ldh",
          age:50,
          address:"浦东航头"
      }

      //表示从对象user中解构，对象的解构只能从属性下手
      let {id:cid,name,age,address,...others} = user;

      console.log(cid);
      console.log(name);
      console.log(others);

      console.log(user);
    </script>
</head>
<body>

</body>
</html>